package com.msb.sentinelOpenfeign.controller;

import com.msb.common.JsonResult;
import com.msb.sentinelOpenfeign.openfeign.OpenFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/****************************************************
 * 通过 OpenFeign 实现远程调用
 * @author lbf
 * @date 2025/6/27 14:33
 ****************************************************/
@RestController
public class OpenFeignController {

    /**
    @Autowired
    private OpenFeignService openFeginService;

    @GetMapping("/getInfo/{id}")
    public JsonResult<String> getInfo(@PathVariable("id") Long id){
        return openFeginService.msbSql(id);
    }

    @GetMapping("/testTimeout")
    public String TestTimeout(){
        return openFeginService.timeOut();
    }
    */
}


